﻿using System;
using System.Collections.Generic;
using MedicalCare.EntityDefinitions.Entities;
using MedicalCare.Messages;

namespace MedicalCare.DbLayer.Adaptors
{
    public interface IScheduleAdaptor: IDbAdaptor<ScheduleMessage, ScheduleEntity>
    {
        IList<ScheduleEntity> GetSchedule(string orderKey, string orderVal, string whereStr);
        IList<DateTime> GetAllBookedDatebyMonth(DateTime date);
        IList<DateTime> GetAllBookedDatebyNurseId(int nurseId);
        IList<ScheduleStatusEntity> GetScheduleStatus();
        int UpdateScheduleStatus(ScheduleMessage msg);
        int UpdateFamilyEquipments(List<EquipmentFamilyMappingMessage> msg);
        IList<FamilyEquipmentEntity> GetEquipementsByScheduleId(int id);
        IList<ScheduleCommentEntity> GetCommentsByScheduleId(ScheduleCommentMessage msg);
        int UpdateComments(ScheduleCommentMessage msg);

        IList<ScheduleCommentReplyEntity> GetCommentReplysByCommentId(ScheduleCommentReplyMessage msg);
        int AddCommentsReplys(ScheduleCommentReplyMessage msg);
    }
}
